const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录",
      showLink: false,
      rank: 101
    }
  },
  {
    path: "/redirect",
    component: Layout,
    meta: {
      title: "加载中...",
      showLink: false,
      rank: 102
    },
    children: [
      {
        path: "/redirect/:path(.*)",
        name: "Redirect",
        component: () => import("@/layout/redirect.vue")
      }
    ]
  },

  {
    name: 'cooperation-register',
    path: '/cooperation/register',
    component: (() => import("@/views/cooperation/register.vue")),
    meta: {
      title: '注册',
      showLink: false
    }
  },
  {
    name: 'cooperation-anchor',
    path: '/cooperation/anchor/:registryType?',
    component: (() => import("@/views/cooperation/anchor/index.vue")),
    meta: {
      title: '主播',
      showLink: false
    }
  },
  {
    name: 'cooperation-anchor-orglist',
    path: '/cooperation/anchor/orglist',
    component: (() => import("@/views/cooperation/anchor/orglist.vue")),
    meta: {
      title: '可选机构',
      showLink: false
    }
  },
  {
    name: 'cooperation-anchor-institutional-contracts',
    path: '/cooperation/anchor/institutional-contracts',
    component: (() => import("@/views/cooperation/anchor/institutional_contracts.vue")),
    meta: {
      title: '机构合约',
      showLink: false
    }
  },
  {
    name: 'cooperation-org',
    path: '/cooperation/org/:registryType?',
    component: (() => import("@/views/cooperation/org/index.vue")),
    meta: {
      title: '机构',
      showLink: false
    }
  },
  {
    name: 'cooperation-agent',
    path: '/cooperation/agent',
    component: (() => import("@/views/cooperation/agent.vue")),
    meta: {
      title: '经纪人',
      showLink: false
    }
  },
] satisfies Array<RouteConfigsTable>;
